export interface ResponseData {
  code: number;
  message: string;
  ok: boolean;
}

//职位数据类型
export interface RoleData {
  id?: number
  createTime?: string
  updateTime?: string
  roleName: string
  remark?: null
}

//全部职位的数组ts类型
export type Records = RoleData[]

//全部职位数据的相应ts类型
export interface RoleResponseData extends ResponseData {
  data: {
    countId: null
    current: number
    hitCount: boolean
    maxLimit: null
    optimizeCountSql: boolean
    orders: []
    pages: number
    records: Records
    searchCount: boolean
    size: number
    total: number
  }
}


//菜单与按钮数据的ts类型
export interface MenuData {
  code: string
  createTime: string
  id: number
  level: number
  name: string
  pid: number
  select: boolean
  status: null
  toCode: string
  type: number
  updateTime: string
  children?: MenuList
}

export type MenuList = MenuData[]

//菜单权限与按钮权限数据的ts类型
export interface MenuResponseData extends ResponseData {
  data: MenuList
}